﻿package mortal.game.view.guild.cellrender
{
    import Message.DB.Tables.*;
    import com.mui.controls.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class GuildPositionCellRenderer extends GuildCellRenderer
    {
        private var _txtGuildLevel:GTextFiled;
        private var _txtDeputyLeaderNum:GTextFiled;
        private var _txtPrestyerNum:GTextFiled;
        private var _txtEliteNum:GTextFiled;

        public function GuildPositionCellRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            this._txtGuildLevel = UIFactory.gTextField("1", 18, 3, 60, 20, this);
            this._txtDeputyLeaderNum = UIFactory.gTextField("1", 105, 3, 60, 20, this);
            this._txtPrestyerNum = UIFactory.gTextField("1", 178, 3, 60, 20, this);
            this._txtEliteNum = UIFactory.gTextField("1", 258, 3, 60, 20, this);
            UIFactory.bg(0, 19.5, 305, 1, this, ImagesConst.SplitLine);
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            var _loc_2:TGuildLevelTarget = null;
            _loc_2 = param1 as TGuildLevelTarget;
            this._txtGuildLevel.text = _loc_2.guildLevel.toString();
            this._txtDeputyLeaderNum.text = _loc_2.deputyLeaderAmount.toString();
            this._txtPrestyerNum.text = _loc_2.presbyterAmount.toString();
            this._txtEliteNum.text = _loc_2.eliteAmount.toString();
            return;
        }// end function

    }
}
